<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title><s:property value="title"/></title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	
	<link href="css/bbs.css" rel="stylesheet" type="text/css"/>
	<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/> 
    <link href="css/AeroWindow.css?r=123" rel="stylesheet" type="text/css"/>
    
    <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script> 
    <script type="text/javascript" src="js/jquery-ui-1.8.1.custom.min.js"></script> 
    <script type="text/javascript" src="js/jquery.easing.1.3.js"></script>         
    <script type="text/javascript" src="js/jquery-AeroWindow.js"></script>

  </head>
  
  <body>
    <s:include value="/top.jsp"></s:include>
    	<div class="main_div">
    		<br/>
    		<s:iterator id="parentBoard" value="boardList">
    		<div class="module_div">
    			<div style="width: 100%; height: 30px; background-repeat: repeat-x;">
	    			<p style="color: white; font-size: 13px; margin: 5px;">
	    			${ parentBoard.name }&nbsp;--&nbsp;${ parentBoard.description }
	    			</p>
	    			<br/>
	    		</div>
	    		
	    		<div class="table_div">
	    			<table>
	    				<tr style="background-color: #FC3; text-align: center;">	
	    					<td style="width: 60%" colspan="2">版块</td>
		    				<td>主题</td>
		    				<td>回帖</td>
		    				<td>最新主题</td>
		    				<td>版主</td>
	    				</tr>
	    				<s:iterator id="board1" value="#parentBoard.subBoard">
	    					<tr style="font-size: 12px; background-color: #e7e7e7;">
		    					<td style="width: 5%; text-align: center;"><img src="images/bbs/board_icon.png"/></td>
		    					<td>
		    					<span>
		    					<s:a href="post_list?board_id=%{#board1.id}">${ board1.name }</s:a>
		    					<br/>
		    					简介：${ board1.description }
		    					<br/>
		    					分类：
		    					<s:iterator id="board2" value="#board1.subBoard">
		    					<s:a href="post_list?board_id=%{#board2.id}">
		    					${ board2.name }
		    					</s:a>
		    					</s:iterator>
		    					</span>
		    					</td>
			    				<td style="text-align: center;">${ board1.postCount }</td>
			    				<td style="text-align: center;">${ board1.replyCount }</td>
			    				<td style="text-align: center;">
			    				作者<br/>
			    				<s:a href="user_selectUser?selectAccount=%{#board1.lastPost.user.account}">${ board1.lastPost.user.account }</s:a>
			    				<s:a href="reply_list?post_id=%{#board1.lastPost.id}"><img src="images/bbs/into_post_icon.png" align="top" style="border: 0px;"></img></s:a>
			    				</td>
			    				<td style="text-align: center;">
			    					<s:iterator id="user" value="%{#board1.moderators}">
			    						<span>
			    							<img src="images/bbs/moderator_icon.png" align="top"/>
			    							<s:a href="user_selectUser?selectAccount=%{#user.account}">${ user.account }</s:a>
			    							<br/>
			    						</span>
			    					</s:iterator>
			    				</td>
		    				</tr>
		    				<tr><td colspan="6"><hr/></td></tr>
	    				</s:iterator>
	    			</table>
	    		</div>
    		</div>
    		<br/>
    		</s:iterator>
    		<br/>
    	</div>
    <s:include value="/bottom.jsp"></s:include>
  </body>
</html>
